Developer Documentation

QuickTime 4 API Documentation

QuickTime 4 Reference

| Previous | Chapter Contents | Chapter Top | Next |

Connecting to the Base Image Decompressor

To use the services of the base image decompressor, your image decompressor component must open a connection to the base image decompressor component. Listing 1 illustrates how to make the connection.

Listing 1 Connecting to the base image decompressor component

CodecComponent baseCodec;
OSErr err;

err = OpenADefaultComponent (decompressorComponentType,
                             kBaseCodecType,
                             &baseCodec);

err = ComponentSetTarget (baseCodec,
                          self);

© 1999 Apple Computer, Inc.

| Previous | Chapter Contents | Chapter Top | Next |